n=int(input("请输入三角形行数："))
for i in range(1,n):
    for m in range(1,n-i):
        print(" ",end="")
    for j in range(2*i-1):
        print("*",end="")
    print()
